Skip to content

hdl: truncate init value read from Signal(...).init #1449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

whitequark
Copy link
Member

We have a warning saying that the init value will be truncated to fit the signal's shape (suppressed for common patterns of 0 and -1), but the introspected via .init value is, confusingly, not truncated.

@whitequark whitequark added this to the 0.6 milestone Jul 19, 2024
@whitequark whitequark requested a review from wanda-phi July 19, 2024 01:12
@whitequark
Copy link
Member Author

I consider this PR a bugfix and tagged it for a backport to 0.5.1.

We have a warning saying that the init value will be truncated to fit
the signal's shape (suppressed for common patterns of 0 and -1), but
the introspected via `.init` value is, confusingly, not truncated.
@whitequark whitequark enabled auto-merge July 19, 2024 02:21
@whitequark whitequark added this pull request to the merge queue Jul 19, 2024
Merged via the queue into amaranth-lang:main with commit cde68fb Jul 19, 2024
20 checks passed
@whitequark whitequark deleted the truncate-init branch July 19, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants